package com.ashley.day_03;

//练习：随意给出一个三位数的整数，打印显示它的个位数，十位数，百位数的值。如：178
public class AriExer {

	public static void main(String[] args) {
		int num = 178;
		int hundred = num / 100;
		System.out.println("百位数为：" + hundred);

		int tens = num % 100 / 10;
		System.out.println("十位数为：" + tens);
		
		int sigle = num % 10;
		System.out.println("个位数为：" + sigle);
	}

}
